echo "Installing dependencies"

echo "Installing libspdlog-dev"
sudo apt update
sudo apt install libspdlog-dev

echo "Git cloning 3rd party libraries"
mkdir 3rd
cd 3rd
git clone https://github.com/Neargye/magic_enum.git
git clone https://github.com/nlohmann/json.git

echo "Installing nlohmann/json"
cd json
cmake -B build
cd build
make
sudo make install
cd ../..

echo "Installing magic_enum"
cd magic_enum
cmake -B build
cd build
make
sudo make install
cd ../..

echo "delete 3rd party libraries"
cd ..
rm -rf 3rd